package org.evil.dog.gateway.feign;

import org.evil.dog.gateway.feign.dto.ManagerSessionDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientsConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 阿巳的狗
 * @Des: 网关错误处理类
 * @Date: 2021-04-30
 */
@FeignClient(value = "evil-dog-manager/evil-dog-manager", configuration = {FeignClientsConfiguration.class})
public interface ManagerLoginFeign {

    @GetMapping(value = "/sys/session")
    public ManagerSessionDto session(@RequestParam("userId") Long userId);
}
